package com.k2.gulimall.product.feign;

import com.k2.common.to.SkuHasStockVo;
import com.k2.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "gulimall-ware",fallback = WareFeignServiceImpl.class)
public interface WareFeignService {

//    @PostMapping("/ware/waresku/hasstock")
    @PostMapping(value = "/ware/waresku/hasstock")
    R getSkusHasStock(@RequestBody List<Long> skuIds);
}
